package com.bookmall.entity;

import java.time.LocalDateTime;

public class Cart {
	private int cartId;                  // 购物车ID
	private int bookId;                  // 书ID
	private int userId;                  // 用户ID
	private int cartNum;                 // 添加到购物车的数量
	private LocalDateTime createTime;    // 创建时间
	private LocalDateTime modifyTime;    // 修改时间
	private boolean deleteFlag;          // 删除标记
	public Cart() {
		super();
	}
	public Cart(int cartId, int bookId, int userId, int cartNum, LocalDateTime createTime, LocalDateTime modifyTime,
			boolean deleteFlag) {
		super();
		this.cartId = cartId;
		this.bookId = bookId;
		this.userId = userId;
		this.cartNum = cartNum;
		this.createTime = createTime;
		this.modifyTime = modifyTime;
		this.deleteFlag = deleteFlag;
	}
	public int getCartId() {
		return cartId;
	}
	public void setCartId(int cartId) {
		this.cartId = cartId;
	}
	public int getBookId() {
		return bookId;
	}
	public void setBookId(int bookId) {
		this.bookId = bookId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getCartNum() {
		return cartNum;
	}
	public void setCartNum(int cartNum) {
		this.cartNum = cartNum;
	}
	public LocalDateTime getCreateTime() {
		return createTime;
	}
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}
	public LocalDateTime getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}
	public boolean isDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	@Override
	public String toString() {
		return "Cart [cartId=" + cartId + ", bookId=" + bookId + ", userId=" + userId + ", cartNum=" + cartNum
				+ ", createTime=" + createTime + ", modifyTime=" + modifyTime + ", deleteFlag=" + deleteFlag + "]";
	}
	
	
}
